07. Environment Setup

Setting Up Your Environment

NOTE: For the rest of this setup, catkin_ws is the name of active ROS workspace, if your workspace name is different, please change the commands accordingly.

If you do not have an active ROS workspace, you can create one by typing:

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/
$ catkin_make

Now that you have a workspace, clone or download the lab repository into the src directory of your workspace:

$ cd ~/catkin_ws/src
$ git clone https://github.com/udacity/RoboND-Controls-Lab.git

Next install missing dependencies using rosdep install:

$ cd ~/catkin_ws
$ rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y

Build the lab:

$ cd ~/catkin_ws
$ catkin_make

If you haven’t already, the following line can be added to your .bashrc to auto-source all new terminals:

$ source ~/catkin_ws/devel/setup.bash

Download the latest binary of the Quad simulator for your OS and put it in a convenient location. **Note: ** The simulator needs to be added to your local system/OS and not inside the VM.

Do not forget to read the README.md found on github for more details.

You have now successfully built the lab and are ready to explore it further!